/* 头部 */
header {
    display: flex;
    justify-content: space-between;
}

header>div {
    height: .6rem;
}

header>div:nth-of-type(1) {
    width: 2rem;
    background-color: rgb(212, 221, 230);
}

header>div:nth-of-type(1)>a {
    display: block;
    text-align: center;
    line-height: .6rem;
    font-size: .18rem;
    color: black;
  
}

header>div:nth-of-type(1)>a:hover {
    color: blue;
    text-decoration: underline;
}

header>div:nth-of-type(2) {
    flex: 1;
    background-color: rgb(179, 193, 209);
}

/* 内容区 */
main {
    flex: 1;
    display: flex;
    justify-content: space-between;
    font-size: .14rem;
}

/* 内容导航栏 */
.nav {
    width: 2rem;
    background-color: rgb(212, 221, 230);

}

.nav>nav {
    width: 2rem;
    background-color: rgb(84, 92, 99);
}

.nav-icon {
    display: inline-block;
    height: .14rem;
    width: .14rem;
    background: url('../icon/坐标.png') no-repeat;
    background-size: .14rem;
}

.nav-icon2 {
    background-image: url('../icon/向下箭头.png');
    transform: translateX(.8rem);
}

.nav-icon-change {
    background-image: url('../icon/向上箭头.png');
}

.nav>nav>ul>li {
    padding: .2rem 0;
    padding-left: .14rem;
    color: whitesmoke;
    cursor: pointer;
}

.nav>nav>ul>li:nth-of-type(2) {
    padding-top: 0;
    padding-bottom: 0;
}

.nav>nav>ul>li>ul>li {
    padding: .2rem 0;
    padding-left: .18rem;
}

.nav>nav>ul>li>ul>li>a {
    color: whitesmoke;
    transition: all .5s;
}

.nav>nav>ul>li>ul>li>a:hover {
    color: rgb(234, 215, 103);
}

.nav>nav>ul>li>ul>li>.nav-light {
    color: rgb(234, 215, 103);
}

/* 内容 */
.content {
    flex: 1;
    background-color: rgb(234, 239, 243);
    padding: .2rem;
}

.content>div {
    background-color: white;
    width: 100%;
    height: 100%;
}

.add {
    padding: .1rem;
}

.add>button {
    outline: none;
    background-color: rgb(103, 194, 58);
    color: whitesmoke;
    border: none;
    padding: .1rem .2rem;
    border-radius: .04rem;
    cursor: pointer;
}

table {
    width: 100%;
    border: 1px solid rgb(247, 248, 251);
    border-collapse: collapse;
}

tr {
    display: flex;
    justify-content: space-between;
}

td {
    border: 1px solid rgb(247, 248, 251);
    padding: .14rem;
    display: flex;
    align-items: center;
}


tr>td:nth-of-type(1),
tr>td:nth-of-type(3),
tr>td:nth-of-type(5) {
    flex: 1;
}

tr>td:nth-of-type(2) {
    flex: 2;
}


tr>td:nth-of-type(4),
tr>td:nth-of-type(6) {
    flex: 5;
}

tr:nth-of-type(n+1)>td:nth-of-type(1) {
    justify-content: flex-end;
}

tr:nth-of-type(n+1)>td:nth-of-type(5) {
    align-items: center;
}

tr:nth-of-type(n+1)>td:nth-of-type(5)>div {
    background-color: rgb(241, 250, 235);
    color: rgb(103, 194, 58);
    padding: .06rem .16rem;
    border-radius: .04rem;
}

.table-icon {
    display: inline-block;
    height: .14rem;
    width: .14rem;
    background: url('../icon/向上箭头1.png') no-repeat;
    background-size: .14rem;
    margin-right: .04rem;
    cursor: pointer;
}

.table-icon1 {
    cursor: default;
    height: .18rem;
    width: .18rem;
    background-size: .18rem;
}

tr:nth-of-type(n+1)>td:last-child>button {
    width: .52rem;
    height: .36rem;
    border-radius: .04rem;
    outline: none;
    border: none;
    cursor: pointer;
}

tr:nth-of-type(n+1)>td:last-child>button:nth-of-type(1) {
    background-color: rgb(63, 158, 255);
    margin-right: .06rem;
}

tr:nth-of-type(n+1)>td:last-child>button:nth-of-type(2) {
    background-color: rgb(246, 111, 114);
}


.table-icon-setting {
    background: url('../icon/修改.png') no-repeat center;
    background-size: .2rem;
}

.table-icon-delete {
    background: url('../icon/删除.png') no-repeat center;
    background-size: .2rem;
}

/* 遮罩层及弹窗 */
.cover {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 102, 102, 0.538);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .14rem;
}

.cover-content {
    width: 8rem;
    height: 5.2rem;
    background-color: white;
    padding: .2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cover-content-head {
    display: flex;
    justify-content: space-between;
}

.cover-content-head>p {
    font-size: .2rem;
}

.cover-content-head-icon {
    display: block;
    height: .2rem;
    width: .2rem;
    background: url('../icon/删除2.png') no-repeat;
    background-size: .2rem;
    cursor: pointer;
}

.cover-content-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding: .6rem .12rem;
}

.cover-content-body>div>span {
    display: inline-block;
    width: .6rem;
    text-align: right;
}

.cover-content-body>div>select {
    outline: none;
    border: 1px solid #ccc;
    border-radius: .04rem;
    padding: .14rem 1.2rem .14rem 1em;
    cursor: pointer;
}

.cover-content-body>div:nth-of-type(2),
.cover-content-body>div:nth-of-type(3),
.cover-content-body>div:nth-of-type(4) {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cover-content-body>div:nth-of-type(2) {
    position: relative;
}

#cover-content-body-err {
    border-color: red;
}

.cover-content-body-err1 {
    color: red;
}

.cover-content-body-err2 {
    color: red;
    position: absolute;
    bottom: -.22rem;
    left: .64rem;
}

.cover-content-body>div>input[type='text'] {
    outline: none;
    border: 1px solid #ccc;
    border-radius: .04rem;
    padding: .14rem 1.2rem .14rem 1em;
    flex: 1;
    margin-left: .04rem;
}

.cover-content-body>div:nth-of-type(5),
.cover-content-body>div:nth-of-type(6) {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.cover-content-body>div>input[type='radio'] {
    outline: none;
    border: 1px solid #ccc;
    border-radius: .04rem;
    padding: .14rem 1.2rem .14rem 1em;
    margin-left: .04rem;
    cursor: pointer;
}

.cover-content-body>div>input[type='radio']~label {
    padding: 0 .16rem 0 .06rem;
    cursor: pointer;
}

.cover-content-foot {
    display: flex;
    justify-content: flex-end;
}

.cover-content-foot>button {
    margin-left: .1rem;
    outline: none;
    border: 1px solid #ccc;
    font-size: .14rem;
    padding: .12rem .2rem;
    border-radius: .06rem;
    cursor: pointer;
}

.cover-content-foot>button:nth-of-type(2) {
    background-color: rgb(63, 158, 255);
    color: white;
}

/* 删除确认框 */
.del-cover {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(102, 102, 102, 0.538);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .14rem;
}

.del-cover-content {
    width: 4rem;
    height: 2rem;
    background-color: white;
    padding: .2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.del-cover-content-body {
    display: flex;
    align-items: center;
    flex: 1;
    padding: .42rem .2rem;
}

.del-cover-content-body>i {
    height: .2rem;
    width: .2rem;
    background: url('../icon/告警实心.png') no-repeat;
    background-size: .2rem;
    margin-right: .12rem;
}

.del-cover-content-foot {
    display: flex;
    justify-content: flex-end;
}

.del-cover-content-foot>button {
    margin-left: .1rem;
    outline: none;
    border: 1px solid #ccc;
    font-size: .14rem;
    padding: .08rem .12rem;
    border-radius: .04rem;
    cursor: pointer;
}

.del-cover-content-foot>button:nth-of-type(2) {
    background-color: rgb(63, 158, 255);
    color: white;
}